<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="models.StoreModel"%>
<%@page import="java.util.TreeMap"%>
<%
TreeMap check = (TreeMap) request.getAttribute("check");
String success = (String) request.getAttribute("success");
StoreModel store = (StoreModel) request.getAttribute("store");
%>

<jsp:include page="/admin/layouts/header.jsp">
    <jsp:param name="language" value="1" />
</jsp:include>
		
		<div class="maincontent noright">
        	<div class="maincontentinner">
                <ul class="maintabmenu multipletabmenu">
                	<li class="current"><a href="#">Quản lý kho</a></li>
                </ul><!--maintabmenu-->
                
                <div class="content">
					<% if (success != null) {%>
					<div class="notification msgsuccess">
                        <a class="close"></a>
                        <p><%=success %></p>
                    </div>
					<% } %>
                    <div class="contenttitle">
                    	<h2 class="form"><span>Thêm mới kho</span></h2>
                    </div><!--contenttitle-->
            
                    <form method="post" action="#" class="stdform stdform2" id="edit_user_form">
                    	
                        <p>
                        	<label>Tên kho hàng</label>
                            <span class="field">
                            	<input type="text" class="smallinput" name="name" id="name" value="<%=store.getName() != null ? store.getName() : "" %>">
                            	<% if (check.get("name") != null) { %>
									<label for="name" generated="true" class="error"><%=check.get("name") %></label>
								<% } %>
                            </span>
                        </p>
                        <p>
                        	<label>Địa chỉ kho hàng</label>
                            <span class="field">
                            	<input type="text" class="smallinput" name="address" id="address" value="<%=store.getAddress() != null ? store.getAddress() : "" %>">
                            	<% if (check.get("address") != null) { %>
									<label for="address" generated="true" class="error"><%=check.get("address") %></label>
								<% } %>
                            </span>
                        </p>                      
                        <p class="stdformbutton">
                        	<button class="submit radius2">Submit</button>
                            <input type="reset" value="Reset Button" class="reset radius2">
                        </p>
                        
                    </form>
                    
                    <br clear="all">
                    
                </div><!--content-->
                
            </div><!--maincontentinner-->
            
            <jsp:include page="/admin/elements/copyright.jsp">
            	<jsp:param name="language" value="1" />
			</jsp:include>
            
        </div>

<jsp:include page="/admin/layouts/footer.jsp">
    <jsp:param name="language" value="1" />
</jsp:include>